package com.demo.mapper;

import com.demo.pojo.entity.ClassInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author lenovo
* @description 针对表【class】的数据库操作Mapper
* @createDate 2025-09-17 10:15:14
* @Entity com.demo.pojo.entity.ClassInfo
*/
@Mapper
public interface ClassMapper extends BaseMapper<ClassInfo> {

    @Select("select * from class where cl_id = #{id}")
    ClassInfo selectById2(Integer id);

    @Select("select * from class where cl_name = #{clName}")
    ClassInfo selectByName(String clName);
}

